package com.ecfront.dao;

import java.util.List;

import com.ecfront.pojo.User;

public interface UserDAO {

	// property constants
	public static final String UNAME = "name";
	public static final String UEMAIL = "email";
	public static final String ULOGIN_PASSWORD = "loginPwd";
	public static final String UPAY_PASSWORD = "payPwd";
	public static final String UQUESTION = "question";
	public static final String UANSWER = "answer";
	public static final String UREAL_NAME = "realName";
	public static final String USEX = "sex";
	public static final String UAGE = "age";
	public static final String UPHONE = "phone";
	public static final String UQQ = "qq";
	public static final String UMSN = "msn";
	public static final String UWANG_WANG = "wangwang";
	public static final String UZIP_CODE = "zipCode";
	public static final String UADD = "add";
	public static final String UMOBILE_PHOME = "mobilePhone";
	public static final String UIC = "ic";
	public static final String UPHOTO_URL = "phonoUrl";
	public static final String UMONEY = "money";
	public static final String UBUY_SCORE = "score";
	public static final String UWAM = "wam";
	public static final String UPAY_BANK = "payBank";
	public static final String UPAY_NBR = "payNum";
	public static final String UIS_LOCK = "isLock";

	public abstract void save(User transientInstance);

	public abstract void delete(User persistentInstance);

	public abstract User findById(java.lang.Integer id);

	public abstract List findByExample(User instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract boolean findUserByNameOrEmailAndPassAndLock(String nameOrEmail, String loginPwd,int isLock);

	public abstract User findByUname(Object uname);

	public abstract User findByUemail(Object uemail);

	public abstract List findByUloginPassword(Object uloginPassword);

	public abstract List findByUpayPassword(Object upayPassword);

	public abstract List findByUquestion(Object uquestion);

	public abstract List findByUanswer(Object uanswer);

	public abstract List findByUrealName(Object urealName);

	public abstract List findByUsex(Object usex);

	public abstract List findByUage(Object uage);

	public abstract List findByUphone(Object uphone);

	public abstract List findByUqq(Object uqq);

	public abstract List findByUmsn(Object umsn);

	public abstract List findByUwangWang(Object uwangWang);

	public abstract List findByUzipCode(Object uzipCode);

	public abstract List findByUadd(Object uadd);

	public abstract List findByUmobilePhome(Object umobilePhome);

	public abstract List findByUic(Object uic);

	public abstract List findByUphotoUrl(Object uphotoUrl);

	public abstract List findByUmoney(Object umoney);

	public abstract List findByUbuyScore(Object ubuyScore);

	public abstract List findByUwam(Object uwam);

	public abstract List findByUpayBank(Object upayBank);

	public abstract List findByUpayNbr(Object upayNbr);

	public abstract List findByUisLock(Object uisLock);

	public abstract List findAll();

	public abstract User merge(User detachedInstance);

	public abstract void attachDirty(User instance);

	public abstract void attachClean(User instance);

}